package cn.kgc.easybuy.dao;

import cn.kgc.easybuy.pojo.Product;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
public interface ProductMapper {
    int delProduct(Integer id);

    int updateProduct(Product product);

    int addProduct(Product product);

    Product selectProductById(Integer id);

    List<Product> selectProductAll();

    List<Product> selectProductByPage(Map<String,Object> params);

    int sellProduct(Product product);
}
